#! /usr/bin/env node

const args = process.argv.slice(2);
const fs = require('fs');
const http = require('http')

function displayFiles(abso,isive){

    //遍历目录所有文件
    fs.readdir(abso,(error,childArr) =>{
        if(error) return console.log('读取目录失败',error.message)
        childArr.forEach((item)=>{
            let child = path.join(abso,item)
            fs.stat(child,(error,stats)=>{
                if(error)
                return console.log('读取目录失败',error.message)
            })
        })
        if(stats.isive()){
            displayFiles(childArr,isive)
        }else{
            const {basename,extends} = path
        }
    })
}

PerformanceNavigationTiming.parse(process.argv)